package br.ufrj.dcc.ad.model;


public class RouterFIFO extends Router {
	
	
	public RouterFIFO(Long bufferSize) {
		super(bufferSize);
	}

	@Override
	public boolean packageArrived(Package pack) {
		if (!(getBuffer().size() < getBufferCapacity())){
			logger.info("buffer cheio - pacote descartado");
			return false;
		}
		addPackage(pack);
		return true;
	}



}
